package accountManagementNew.common.vo;

import accountManagementNew.common.enums.PaymentMethodEnum;
import accountManagementNew.common.enums.StatisticsEnum;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @Author：lihonbin
 * @Version：1.0.0
 * @Date:2025/9/28
 * @Description: 个人消费记录VO
 */
@Data
@Schema(description = "个人消费记录VO")
public class ConsumptionRecordPersonalVO {

    @Schema(description = "消费记录ID")
    private String typeId;

    @Schema(description = "用户ID")
    private String userId;

    @Schema(description = "消费时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime consumptionDate;

    @Schema(description = "支付方式")
    private PaymentMethodEnum paymentMethod;

    @Schema(description = "消费描述")
    private String description;

    @Schema(description = "是否必要")
    private Integer isNecessary;

    @Schema(description = "是否统计")
    private StatisticsEnum isStatistics;

    @Schema(description = "金额")
    private BigDecimal amount;
}
